package cn.mesmile.activity.config.multi;

import org.activiti.bpmn.model.Activity;
import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior;
import org.activiti.engine.impl.bpmn.behavior.SequentialMultiInstanceBehavior;

/**
 * @author zb
 * @date 2022/1/17 10:27
 * @Description
 */
public class WfSequentialMultiInstanceActivityBehavior extends SequentialMultiInstanceBehavior {

    public WfSequentialMultiInstanceActivityBehavior(Activity activity, AbstractBpmnActivityBehavior innerActivityBehavior) {
        super(activity, innerActivityBehavior);
    }

    @Override
    protected int createInstances(DelegateExecution multiInstanceExecution) {
        // 自定义多实例拦截器
        // 自定义逻辑

        return super.createInstances(multiInstanceExecution);
    }


}
